package com.meritit.microcloud.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import com.meritit.microcloud.service.HelloService;

@RestController
public class ConsumerController {

	@Autowired
	private HelloService helloService;
	
	@GetMapping("/getHello/{name}")
	public String getUserById(@PathVariable String name) {
		return helloService.hiService(name);
	}
}
